import { data } from './languages'

export type Item = {
  value: number | string
  name: string
  example: string
}

export type I18nText = {
  'en-US': string
  'zh-CN': string
}

export const { languages } = data

export const languagesSupported = languages.filter((item) => item.supported).map((item) => item.value)

export const getSupportLanguage = (): string => languagesSupported[0]
